package com.momo.apachedoris.test;

/**
 * @Author: Jie Li
 * @Date 2022年12月17日 13:39
 * @Description: 定义节点类
 * @Version: 1.0
 * <p>Copyright: Copyright (c) 2022</p >
 **/
public class HeroNode2 {
    public int no;
    public String name;
    public String nickname;
    public HeroNode2 next;       //指向下一个节点,默认为null
    public HeroNode2 pre;        //指向上一个节点,默认为null

    //构造器

    public HeroNode2(int no, String name, String nickname) {
        this.no = no;
        this.name = name;
        this.nickname = nickname;
    }


    @Override
    public String toString() {
        return "HeroNode2{" +
                "no=" + no +
                ", name='" + name + '\'' +
                ", nickname='" + nickname + '\'' +
                '}';
    }
}
